package com.ct.gd.passport.view.passport;

import android.os.Bundle;
import android.support.v4.app.FragmentManager;

import com.ct.gd.passport.R;
import com.ct.gd.passport.common.BaseActivity;
import com.ct.gd.passport.view.widget.CustomHeaderFragment;

public class PassportAppHistoryActivity extends BaseActivity {

	private FragmentManager			mFgMan;
	private CustomHeaderFragment	mFgHeader;
	private PassportAppHistoryFragment	mPassportHistoryFrag;

	@Override
	protected void onBaseCreate(Bundle savedInstanceState) {
		setContentView(R.layout.passport_app_history);
	}

	@Override
	protected void initViews() {
		mFgMan = getSupportFragmentManager();

		mFgHeader = (CustomHeaderFragment) mFgMan.findFragmentById(R.id.header);
		mFgHeader.setCenterText(R.string.passport_query);
//		mFgHeader.setRightText(R.string.advice_submit_intro);
//		mFgHeader.setRightText(R.string.passport_query_user_number);
//		mFgHeader.setRightOnClickListener(this);
		
		mPassportHistoryFrag = (PassportAppHistoryFragment) mFgMan.findFragmentById(R.id.app_history_catalog);
	}

	@Override
	protected void onAfterCreate(Bundle savedInstanceStat) {
		super.onAfterCreate(savedInstanceStat);
		mPassportHistoryFrag.loadCatalog();
	}

}
